//
//  User.m
//  OCMicroBlog
//
//  Created by 002 on 15/11/6.
//  Copyright © 2015年 002. All rights reserved.
//

#import "User.h"

@implementation User

- (instancetype)initWithDict:(NSDictionary *)dict {
    
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+ (instancetype)userWithDict:(NSDictionary *)dict {
    return [[self alloc] initWithDict:dict];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}

/**
 *  模型调试信息
 *
 *  @return
 */

- (NSString *)description {
    
    NSArray *keys = @[@"id", @"screen_name", @"profile_image_url", @"verified_type",@"mbrank"];

    return [self dictionaryWithValuesForKeys:keys].description;
}

@end
